package com.weitu.permission.dictionaryData.mapper;

import com.weitu.permission.dictionaryData.entity.DictionaryData;

import java.util.List;
import java.util.Map;

/**
 * Created by smp on 2017/6/15.
 */
public interface DictionaryDataMapper {

    int queryCount(Map<String,Object> map);

    List<DictionaryData> queryList(Map<String,Object> map);

    List<DictionaryData> queryTreeList(Map<String,Object> map);

    int queryCountByCode(String code);

    int insert(DictionaryData dictionaryData);


    int delete(String id);
    List<DictionaryData> queryListAll(String pId);

    DictionaryData queryById(String id);

    int update(DictionaryData dictionaryData);

    List<DictionaryData> queryDictionaryDataByParentCode(String code);


    DictionaryData queryDictionaryDataByCode(String code);
}
